<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/resources/common/commonTaglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 导入资源文件 -->
<%@include file="/resources/common/commonJs.jsp" %>
<%@include file="/resources/common/commonCss.jsp" %>
<style type="text/css">
.addTable{
	line-height: 30px;
	border:solid 1px #cbcbcb; /* 设置边框属性；样式(solid=实线)、颜色(#999=灰) */
	text-align: center;
}
.addTable td{
	border:solid 1px #cbcbcb;
	text-align: center;
	letter-spacing:2px;
	width: 10%;
}
</style>
<title>校车时刻详情</title>
<script type="text/javascript">
function update() {
	$('#saveForm').submit();
}

$(function() {
	$(".form-date").datetimepicker({
	    language:  "zh-CN",
	    weekStart: 1,
	    todayBtn:  1,
	    autoclose: 1,
	    todayHighlight: 1,
	    startView: 1,
	    minView: 0,
	    maxView: 1,
	    minuteStep: 5,
	    forceParse: 0,
	    format: 'hh:ii'
	});
})
</script>
</head>
<body>
<form action="${path }/busSchedule/busScheduleSave" id="saveForm">
<div class="panel panel-info" style="margin-top: 5px; margin-left: 2%; width: 96%">
	<input type="hidden" name="id" value="${busSchedule.id }"/>
	<div class="panel-heading">
		校车时刻信息详情
	</div>
	<div class="panel-body">
		<table class="addTable">
			<tr>
				<td>发车时间</td>
				<td><input type="text" name="startTime" value="${busSchedule.startTime }" class="form-control form-date"/></td>
				<td>到达时间</td>
				<td><input type="text" name="endTime" value="${busSchedule.endTime }" class="form-control form-date"/></td>
			</tr>
			<tr>
				<td>始发站</td>
				<td>
					<select class="form-control" name="startStation">
						<option value="1" <c:if test="${busSchedule.startStation == 1 }">selected</c:if>>金花校区</option>
						<option value="2" <c:if test="${busSchedule.startStation == 2 }">selected</c:if>>临潼校区</option>
					</select>
				</td>
				<td>终点站</td>
				<td>
					<select class="form-control" name="endStation">
						<option value="1" <c:if test="${busSchedule.endStation == 1 }">selected</c:if>>金花校区</option>
						<option value="2" <c:if test="${busSchedule.endStation == 2 }">selected</c:if>>临潼校区</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>录入时间</td>
				<td><input type="text" value="<fmt:formatDate value="${busSchedule.createDate }" pattern="yyyy-MM-dd"/>" class="form-control" disabled/></td>
			</tr>
			<tr>
				<td colspan="4">
					<button class="btn btn-primary" onclick="update()">修改</button>
					<button class="btn">返回</button>
				</td>
			</tr>
		</table>
	</div>
</div>
</form>
</body>
</html>